/**
 *  Filename: Helpers.java
 *  Purpose: Collection of convenience functions used throughout the program.
 *           New functions added to Helpers as needed to reduce redundant code.
 *  Date: Nov 2, 2009
 *  Author: Philippe Gambling
 */
package com.pgamb.Hwk4;

import java.util.Set;

/**
 * @author philippe
 *
 */
public class Helpers {

	/**
	 *  Name: String2Set
	 *  Description: Converts a string into a set of characters. 
	 *  Date: 11/02/2009
	 *  @author Philippe Gambling
	 *  @param src string to convert into a set.
	 *  @param dest each character in src is added to dest.
	 */	
	public static void String2Set(String src, Set<Character> dest) {
		for(int i = 0; i < src.length(); i++) {
			dest.add(src.charAt(i));
		}
	}
}
